package com.hundsun.data.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author pw
 * @date 2024年06月11日
 * @describe
 **/
@Configuration
@ConfigurationProperties(prefix = "spring.datasource")
@Data
public class DataSourceConfigProperties {

    public static DmDataSource dm;
    public static TdsqlDataSource td;
    public static OracleSource oracle;
    public static MysqlSource mysql;

    public static class DmDataSource extends BaseInfo{

    }
    public static class TdsqlDataSource extends BaseInfo{

    }
    public static class OracleSource extends BaseInfo{

    }
    public static class MysqlSource extends BaseInfo{

    }

    @Data
    public static class BaseInfo{
        private String driverClassName;
        private String url;
        private String username;
        private String password;
        private String validationQuery;
    }
}
